﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NHibernate.Expression;
using Schooll.Model;

public partial class Secretaria_BuscarAlumnos : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["q"] != null)
        {
            Schooll.Model.Alumno[] aa = Schooll.Model.Alumno.FindAll(Expression.Like(  "Apellido" , Request.QueryString["q"]+"%"));
            foreach (Alumno a in aa)
            {
                Response.Write(a.Apellido + "," + a.Nombre+"|" + a.IdAlumno  +"\n");
            }

        }
    }
}
